home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13121 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.eiffel,comp.lang.c,comp.lang.c++,comp.object,comp.software-eng
  4. Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
  5. Date: 23 Mar 1996 12:42:38 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4j1gmu$crl@solutions.solon.com>
  8. References: <1995Jul3.034108.4193@rcmcon.com> <4i862r$1evq@saba.info.ucla.edu> <64ss5$3F3RB@herold.franken.de> <314DADD4.3DE@oc.com>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <314DADD4.3DE@oc.com>, Larry Weiss  <lfw@oc.com> wrote:
  12. >What do C hackers think about the new freedom (since the publication of
  13. >the C Standard) that compilers have to "inline" standard library calls,
  14. >thereby making it hard for hackers to provide their own variations of
  15. >any standard library "function" ?
  16.  
  17. I love it!
  18.  
  19. It means I can use library calls without worrying about how long function
  20. calls take, knowing that if it matters, the library is likely to inline
  21. it.
  22.  
  23. >In the old days, when the Standard library was just another set of linkable
  24. >entry points, it was straightforward to replace the vendor's logic with
  25. >your own (maybe just the same with tracepoint logic, but maybe a very 
  26. >experimental replacement, and maybe a "better" one).   No more!
  27.  
  28. It's still straightforward; you write your own logic, and then use a function
  29. which uses your logic.  If your logic doesn't work, you just make the function
  30. a stub around the library routine.
  31.  
  32. This is SOP if you don't quite like the semantics of a library call, and also
  33. makes it easier to work around vendor bugs.
  34.  
  35. I don't do it for most calls, but I bring it in occasionally.
  36.  
  37. For instance, most of the functions in the stdlib that take a single
  38. char * argument, I have stubs for which take (char *, ...) and do
  39. "the right thing" with vsprintf.  Easy!
  40.  
  41. >What is the position of other languages with respect to their equivalent
  42. >of the "Standard library" ?   Can I hack the runtime support in other
  43. >languages today more easily than I can the C runtime?
  44.  
  45. I have no idea about this one.
  46.  
  47. -s
  48. -- 
  49. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  50. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  51. FUCK the communications decency act.  Goddamned government.  [literally.]
  52. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  53.